package com.bowen.demo.demo005;

/**
 * <h3>java-study</h3>
 * <p>Book</p>
 * @author : zhang.bw
 * @date : 2021-03-19 18:08
 **/
public class Book{

	private final static String TAG = "BookTag";

	private String name;
	private String author;

	@Override
	public String toString() {
		return "Book{" +
				"name='" + name + '\'' +
				", author='" + author + '\'' +
				'}';
	}

	public Book() {
	}

	private Book(String name, String author) {
		this.name = name;
		this.author = author;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	private String declaredMethod(int index) {
		String string = null;
		switch (index) {
			case 0:
				string = "I am declaredMethod 1 !";
				break;
			case 1:
				string = "I am declaredMethod 2 !";
				break;
			default:
				string = "I am declaredMethod 3 1 !";
		}

		return string;
	}
}
